package cn.njxzc.examples;

class people {
	String name;
	int age;

	people() {
	}

	people(String name, int age) {
		this.name = name;
		this.age = age;
		System.out.println("In people");
	}
}

class student1 extends people {
	String school;

	student1() {
		this(null, 0, null);
		System.out.println("In student1");
	}

	student1(String name, int age, String school) {
		super(name, age);// 调用父类的构造方法
		this.school = school;
		System.out.println("In student2");
	}

}

class graduate extends student1 {
	graduate() {
		System.out.println("In graduate");
	}
}

class Exam3_16 {
	public static void main(String[] args) {
		people p = new graduate();
	}

}
